﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace Aioms.Models
{
    ///<summary>
    ///
    ///</summary>
    [SugarTable("employee_enterprise")]
    public class EmployeeEnterprise
    {
        public EmployeeEnterprise()
        {
            this.Created = DateTime.Now;
            this.Updated = DateTime.Now;
        }
        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "id")]
        public int Id { get; set; }

        /// <summary>
        /// Desc:员工ID
        /// Default:
        /// Nullable:True
        /// </summary> 
        [SugarColumn(ColumnName = "employee_id")]
        public long Epid { get; set; }

        /// <summary>
        /// Desc:企业ID
        /// Default:
        /// Nullable:True
        /// </summary>    
        [SugarColumn(ColumnName = "enterprise_id")]
        public long Eid { get; set; }

        /// <summary>
        /// Desc:身份表示，管理员：admin
        /// Default:
        /// Nullable:True
        /// </summary>   
        [SugarColumn(ColumnName = "flag")]
        public string Flag { get; set; }

        /// <summary>
        /// Desc:用户在该企业的昵称
        /// Default:
        /// Nullable:True
        /// </summary>   
        [SugarColumn(ColumnName = "nickname")]
        public string NickName { get; set; }

        /// <summary>
        /// Desc:加入时间
        /// Default:
        /// Nullable:True
        /// </summary>   
        [SugarColumn(ColumnName = "created")]
        public DateTime? Created { get; set; }

        /// <summary>
        /// Desc:最后修改时间
        /// Default:
        /// Nullable:True
        /// </summary>
        [SugarColumn(ColumnName = "updated")]
        public DateTime? Updated { get; set; }

    }
}
